//
//  Extentsion+NetWorkTools.swift
//  weibo
//
//  Created by JonsonLiu on 2017/3/10.
//  Copyright © 2017年 JonsonLiu. All rights reserved.
//

import Foundation

extension NetworkTools {

    func statesList(compose : ()->()){
    
        let url = "https://api.weibo.com/2/statuses/home_timeline.json"
                let param = [
                    "access_token" : "2.00VbzG3CbZxgeBafd89365faJgnK_B"
                ]
                NetworkTools.shardTools.request(method: .Get, urlString: url, parameters: param as Any? as AnyObject?) { (responseObject, error) in
                    
                    print(responseObject,error)
        }
    }
}
